<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:a4j="http://richfaces.org/a4j"
        xmlns:rich="http://richfaces.org/rich">

<ui:composition template="/Templates/SPI.xhtml">
	<ui:param name="navegacion" value="Convocatoria" />
	<ui:define name="header">
                 <div id="tituloForm"><span class="spanBoldInf">TIPOS DE PLAN</span></div>
                

	</ui:define>
	<ui:define name="content">
	 <h:panelGrid id="posiPanelTiPlan" columns="3" styleClass="panelGridConActiva">
             <rich:panel>
               <f:facet name="header"><span class="esPanPlaTipo">TIPO DE PLAN</span></f:facet>

               <a4j:commandButton id="posiBotNuevoPlaTi" value="NUEVO"></a4j:commandButton>


               <rich:dataTable  onRowMouseOver="this.style.backgroundColor='#F1F1F1'"
                    onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
                    cellpadding="0" cellspacing="0"
                    width="700" border="0" var="planTi" value="#{gestorPlanTipo.listadoSpiPlanTipo}">
                        
                        
                        <rich:column>
                            <f:facet name="header">Código</f:facet>
                            <h:outputText value="#{planTi.pltCodigo}"></h:outputText>
                                        
                        </rich:column>
                        <rich:column>
                                <f:facet name="header">Descripción</f:facet>
                                <h:outputText value="#{planTi.pltDescripcion}"></h:outputText>
                        </rich:column>
                        <rich:column >
                                <f:facet name="header">Activo</f:facet>
                                 <h:selectBooleanCheckbox value="#{calendarBean.popup}">
                                        <a4j:support event="onclick"  reRender="calendar"/>
                                 </h:selectBooleanCheckbox>
                                
                        </rich:column>
                        <rich:column>
                                <f:facet name="header">Acciones</f:facet>
                                    <a4j:commandLink ajaxSingle="true" id="editLink"
                                    oncomplete="#{rich:component('editPanel')}.show()">
                                        <h:graphicImage value="/Imagenes/edit.gif" style="border:0"/>
                                    <f:setPropertyActionListener value="#{category}"
                                        target="#{dataTableScrollerBean.currentItem}" />
                                    <f:setPropertyActionListener value="#{row}"
                                        target="#{dataTableScrollerBean.currentRow}" />
                                    <rich:toolTip for="editLink" value="Edit" />
                                    <a4j:commandLink ajaxSingle="true" id="deleteLink"
                                        oncomplete="#{rich:component('deletePanel')}.show()">
                                        <h:graphicImage value="/Imagenes/delete.gif" style="border:0" />
                                        <f:setPropertyActionListener value="#{row}"
                                            target="#{dataTableScrollerBean.currentRow}" />
                                    </a4j:commandLink>
                                    <rich:toolTip for="deleteLink" value="Delete" />
                                    </a4j:commandLink>
                        </rich:column>
                      
                </rich:dataTable>
 
             </rich:panel>

                   
         </h:panelGrid>

	</ui:define>
	
</ui:composition>
</html>